public class Test {
    public static void main(String[] args) {
        Dog dog = new Dog("大黄", 3);
        System.out.println(dog.getName() + ","+dog.getAge());
        dog.swim();
        dog.eat();



        Rabbit rabbit = new Rabbit("小白", 3);
        System.out.println(rabbit.getName()+","+rabbit.getAge());
        rabbit.eat();
    }
}
